package top.appx.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zwy on 2015-5-21.
 */
public class ResultVO extends HashMap {
    public static ResultVO success(){
        return new ResultVO();
    }
    public static ResultVO error(String msg){return new ResultVO(msg);}

    public ResultVO(){
        this.put("success",true);
    }
    public ResultVO(String msg){
        this.put("success",false);
        this.put("msg",msg);

    }
}
